package com.xnyzc.lhy.order.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
* <p>
* 用户基础表
* </p>
*
* @author lhy@xnyzc.com
* @since 2019-07-17
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaCUser对象", description="用户基础表")
public class OaCUser implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID(使用Snowflake生成)")
    @TableId(value="user_id", type = IdType.INPUT)
    private Long userId;

    @ApiModelProperty(value = "手机号码")
    private String userPhone;

    @ApiModelProperty(value = "登录账号")
    private String loginAccount;

    @ApiModelProperty(value = "账号登录密码")
    private String loginPassword;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private Long avatarFileId;

    @ApiModelProperty(value = "1：男，2：女，3：保密,4:未设置")
    private String sex;

    @ApiModelProperty(value = "电子邮件")
    private String email;

    @ApiModelProperty(value = "邮箱绑定状态（0：未绑定；1：已绑定）")
    private Integer emailStatus;

    @ApiModelProperty(value = "0:正常用户;1:黑名单用户;2:用户已注销")
    private Integer isBlocked;

    @ApiModelProperty(value = "0:未上传;1:待审核,2:审核通过;4:审核失败；5：身份证过期；")
    private Integer identityVerfied;

    @ApiModelProperty(value = "0:未上传;1:待审核,2:审核通过;4:审核失败；5：驾照过期；")
    private Integer driveVerfied;

    @ApiModelProperty(value = "微信openId")
    private String openId;

    @ApiModelProperty(value = "用户token")
    private String userToken;

    @ApiModelProperty(value = "用户盐")
    private String salt;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "用户类型（0：个人；1：企业）")
    private Integer userType;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String USER_ID = "user_id";

    public static final String USER_PHONE = "user_phone";

    public static final String LOGIN_ACCOUNT = "login_account";

    public static final String LOGIN_PASSWORD = "login_password";

    public static final String USER_NAME = "user_name";

    public static final String NICK_NAME = "nick_name";

    public static final String AVATAR_FILE_ID = "avatar_file_id";

    public static final String SEX = "sex";

    public static final String EMAIL = "email";

    public static final String EMAIL_STATUS = "email_status";

    public static final String IS_BLOCKED = "is_blocked";

    public static final String IDENTITY_VERFIED = "identity_verfied";

    public static final String DRIVE_VERFIED = "drive_verfied";

    public static final String OPEN_ID = "open_id";

    public static final String USER_TOKEN = "user_token";

    public static final String SALT = "salt";

    public static final String TAG = "tag";

    public static final String USER_TYPE = "user_type";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
